package ar.mobileideas.mobiletasks.app.main;

import ar.mobileideas.mobiletasks.api.webservice.MobileTasksService;
import ar.mobileideas.mobiletasks.app.ui.HomeScreen;
import ar.mobileideas.mobiletasks.app.ui.LoginScreen;
import net.rim.device.api.ui.UiApplication;

/**
 * This class extends the UiApplication class, providing a
 * graphical user interface.
 */
public class MobileTasks extends UiApplication
{
    /**
     * Entry point for application
     * @param args Command line arguments (not used)
     */ 
    public static void main(String[] args)
    {
        // Create a new instance of the application and make the currently
        // running thread the application's event dispatch thread.
        MobileTasks theApp = new MobileTasks();       
        theApp.enterEventDispatcher();
    }
    

    /**
     * Creates a new MobileTasks object
     */
    public MobileTasks()
    {        
        // Push a screen onto the UI stack for rendering.
    	MobileTasksService.Initialize("http://192.168.0.101/HelloWorld/HelloWorld.asmx", "http://192.168.0.101/HelloWorld/");
    	
        pushScreen(new LoginScreen());
    }    
}
